package com.songlanyun.modules.servicegoods.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.goods.model.vo.GoodsSlimVo;
import com.songlanyun.modules.servicegoods.entity.ServiceGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.servicegoods.model.vo.NearbyShopSlimVo;
import com.songlanyun.modules.servicegoods.model.vo.ServiceGoodsPageReq;
import com.songlanyun.modules.servicegoods.model.vo.ServiceGoodsSlimVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 服务商品
 * 
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-12-15 11:33:21
 */
@Mapper
public interface ServiceGoodsDao extends BaseMapper<ServiceGoods> {

    IPage<ServiceGoodsSlimVo> queryAllPage(IPage<ServiceGoodsSlimVo> page,@Param("goodsPageReq") ServiceGoodsPageReq paramsMapToReq);

    IPage<ServiceGoodsSlimVo> querySelfPage(IPage<ServiceGoodsSlimVo> page, @Param("goodsPageReq") ServiceGoodsPageReq paramsMapToReq);

    List<ServiceGoodsSlimVo> loadList(@Param("goodsPageReq") ServiceGoodsPageReq paramsMapToReq);

    Integer loadCount(@Param("goodsPageReq") ServiceGoodsPageReq paramsMapToReq);

    List<NearbyShopSlimVo> nearbyShopList(@Param("goodsPageReq") ServiceGoodsPageReq paramsMapToReq);
}
